﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IsPal
{
    class Program
    {
        static void Main(string[] args)
        {
            foreach(string S in args)
                Console.WriteLine("{0}", IsSpal(S));
            Console.ReadLine();
        }

        private static bool IsSpal(string S)
        {
            for (int i = 0; i <= S.Length/2; i++)
            {
                if (!(S[i].Equals(S[S.Length - 1-i]))) return false;
            }
            return true;
        }

    }
}
